<?php
$time = $_REQUEST['time'] ?: '本周';
$result = ['status' => 1,'message' => []];
if($time == '本周'){
    $result['message'] = [
        'shangjidata' => 100,
        'jiechudata' => 200,
        'yansundata' => 300,
        'baofeidata' => 400
    ];
}
elseif ($time == '本月'){
    $result['message'] = [
        'shangjidata' => 200,
        'jiechudata' => 400,
        'yansundata' => 600,
        'baofeidata' => 800
    ];
}
elseif ($time == '本季度'){
    $result['message'] = [
        'shangjidata' => 400,
        'jiechudata' => 800,
        'yansundata' => 1200,
        'baofeidata' => 1600
    ];
}
elseif ($time == '本年度'){
    $result['message'] = [
        'shangjidata' => 800,
        'jiechudata' => 1600,
        'yansundata' => 2400,
        'baofeidata' => 3200
    ];
}
die(json_encode($result,true));